package com.ltj.springbootrestfuldemo.service;

import com.ltj.springbootrestfuldemo.manager.UserManager;
import com.ltj.springbootrestfuldemo.pojo.User;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    public void setUser(User user){
        UserManager.getInstance().setUser(user);
    }
    public User getUser(){
//        User user = new User();
        return UserManager.getInstance().getUser();

    }
}
